Bug 660730: Win32: Only use _fstat32 if available
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 12 Oct 2011 03:39:06 +0000 (11:39 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 12 Oct 2011 03:39:06 +0000 (11:39 +0800)
commit5a13e08fa7a1faad673856fa359f3d597ae69fa9
tree16174443b866ef981b6d3f29f083b88e9473d20f
parent9e0efc5022400b003725838af5a1c173ebea0bd1
Bug 660730: Win32: Only use _fstat32 if available

_fstat32 is only introduced with msvcrt80.dll (i.e. Visual C++ 2005), in
which using this function will break compilation with MinGW, which links
against msvcrt.dll.  The msvcrt.lib in the Windows DDK which links to
a later incarnation of the msvcrt.dll in later Windows systems may have
this symbol defined, but that needs to be checked upon to be sure.

Thanks to Dieter Verfaillie for pointing out this problem.
gtk/gtkiconcache.c